//
//  HMInviteCodeTableViewCell.m
//  HMMarket
//
//  Created by maimaigo3 on 2017/5/17.
//  Copyright © 2017年 homai. All rights reserved.
//

#import "HMInviteCodeTableViewCell.h"

@implementation HMInviteCodeTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    [_phoneBtn addTarget:self action:@selector(callService) forControlEvents:UIControlEventTouchUpInside];
    // Initialization code
}

- (void)callService {
    NSMutableString *str = [[NSMutableString alloc] initWithFormat:@"telprompt://%@",@"4000999168"];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
